"use strict"

const reviewdb = require('../Models/ReviewDB');

var reviewDBObject = new reviewdb();

function routeReview(app){
    app.route('/review')
         .get(reviewDBObject.getAllReview);
    app.route('/review/:id')
         .delete(reviewDBObject.deleteReview);
    app.route('/addreview')
         .post(reviewDBObject.addReview);
    app.route('/findonereview')
      .post(reviewDBObject.findOneReview);
}

module.exports = {routeReview};